package com.gadgets.framework.conf;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2021-11-13
 */
@Configuration
public class GadgetsDruidConfiguration {

    @Bean(name = "gadgetsDataSource")
    @ConfigurationProperties(prefix = "gadgets.datasource")
    public DruidDataSource druidDataSource(){
        return new DruidDataSource();
    }

}
